package com.yangyu.mapper;

import com.yangyu.pojo.Like;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface LikeMapper {

    /**
     * 新增点赞
     *
     * @param like 点赞信息
     * @return
     */
    int addLike(@Param("like") Like like);

    /**
     * 删除点赞
     *
     * @param like 点赞信息
     * @return
     */
    int deleteLike(@Param("like") Like like);

    /**
     * 查询点赞
     *
     * @param like 点赞信息
     * @return
     */
    int getLike(@Param("like") Like like);
}
